<?php 
/*
* 首页日志列表部分
*/
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
<!--Container Stard-->
<div class="container">
<!--Left Stard-->
<?php doAction('index_loglist_top'); ?>
<div class="main">



<div class="posts">
            <!--Post Stard-->
            <?php foreach($logs as $value): ?>
            	<div class="post-box-title"><h2 class="title"> <a href="<?php echo $value['log_url']; ?>"><span class="aside-icon list2_ico"></span><?php topflg($value['top']); ?><?php echo $value['log_title']; ?></a></h2></div>
                
            	<div class="post-box">
                	<div class="post-box-container">
                    	
                        <div class="logtext read-content">
                        <!--下面是正文部分-->
<?php echo ''.subString(strip_tags($value['log_description'],$img),0,200).''; ?>...
						<!--上面是正文部分 end-->
                        </div>
                        <div class="meta">
                        	<!--下面是标签以及信息-->
							<div class="post-tags">
                            标签：<?php blog_tag($value['logid']); ?>
                            </div>
                            <span class="fleft">Date：&nbsp;</span><span class="fleft"><?php echo gmdate('Y/n/j G:i l', $value['date']); ?></span>
                            <span class="fleft">&nbsp;&nbsp;Sort：&nbsp;</span><?php blog_sort($value['logid']); ?>
	                         <a class="fright" href="<?php echo $value['log_url']; ?>" title="阅读全文">Continue Reading</a>
                            <a class="fright" href="<?php echo $value['log_url']; ?>"><?php echo $value['views']; ?> Views&nbsp;/&nbsp;</a>
                            <a class="fright" href="<?php echo $value['log_url']; ?>#comments"><?php echo $value['comnum']; ?> Comments&nbsp;/&nbsp;</a>
						</div>
                    </div>
                </div>
                 <div class="post-box-footer"></div>
<?php endforeach; ?>


              <!--Post End-->
            </div>

 <!--pagination Stard--><div class="post-box-header"></div>
            <div class="pagination"> <?php if($page_url): ?> <p class="pageinfo">Page: <?php echo $page; ?> of <?php echo ceil($lognum/$index_lognum); ?></p><?php endif; ?>
                   <?php echo $page_url;?>			
            </div><div class="post-box-footer"></div>
            <!--pagination End--> 



</div>
    <!--Left End-->
<?php
 include View::getView('side');
 include View::getView('footer');
?>
